﻿package common.utils.dt
{

    public class DateTime extends Object
    {
        private var _second:int = 0;
        private var _minute:int = 0;
        private var _hour:int = 0;
        private var _day:int = 0;
        private var _mouth:int = 0;
        private var _year:int = 0;

        public function DateTime()
        {
            return;
        }

		/**
		 * @param h 时
		 * @param m 分
		 * @param s 秒
		 * @return  
		 */		
        public static function getSecond(h:int, m:int, s:int) : int
        {
            return h * 3600 + m * 60 + s;
        }

        public static function getYYMMSSText(param1:int) : String
        {
            if (param1 <= 0)
            {
                return "00:00:00";
            }
            var _loc_2:* = param1 / 1000;
            var _loc_3:int = 0;
            _loc_3 = _loc_2 / 3600;
            _loc_2 = _loc_2 % 3600;
            var _loc_4:int = 0;
            _loc_4 = _loc_2 / 60;
            _loc_2 = _loc_2 % 60;
            return get2BitText(_loc_3) + ":" + get2BitText(_loc_4) + ":" + get2BitText(_loc_2);
        }

        public static function getYYMMSSEEText(param1:int) : String
        {
            var _loc_2:* = param1 / 10;
            var _loc_3:* = param1 % 10;
            return getYYMMSSText(_loc_2) + "." + _loc_3;
        }
        public static function get2BitText(param1:int) : String
        {
            return param1 < 10 ? ("0" + param1) : (param1.toString());
        }

    }
}
